yourDataPtr
Type Definitions
SectionRecord Edition section record
EditionContainerSpec Edition container specification
EditionInfoRecord Edition information record
NewPublisherReply Reply for a new publisher
NewSubscriberReply Reply for a new subscriber
SectionOptionsReply Reply for a sections option
FormatIOParamBlock Formatted I/O parameter block
EditionOpenerParamBlock Edition opener parameter block
typedef unsigned char FormatIOVerb;
typedef unsigned char EditionOpenerVerb;
typedef char SectionType; one byte, stSubscriber or stPublisher
typedef unsigned long TimeStamp; seconds since 1904
typedef unsigned long FormatType; similar to ResType
typedef Handle EditionRefNum; used in Edition I/O
typedef short UpdateMode; sumAutomatic, pumSuspend, etc
typedef pascal short (*EditionOpenerProcPtr) (EditionOpenerVerb selector,
typedef pascal Boolean (*ExpModalFilterProcPtr) (DialogPtr theDialog,
EventRecord *theEvent, short itemOffset, short
*itemHit, Ptr yourDataPtr);
typedef pascal short (*ExpDlgHookProcPtr) ( short itemOffset, short
itemHit, DialogPtr theDialog, Ptr yourDataPtr);
typedef pascal short (*FormatIOProcPtr) (FormatIOVerb selector,
Resource types
rSectionType 'sect' resource type for a section
Section types
stSubscriber 0x01 subscriber section type
stPublisher 0x0A publisher section type
sumAutomatic 0 subscriber update mode - Automatically
sumManual 1 subscriber update mode - Manually
pumOnSave 0 publisher update mode - OnSave
pumManual 1 publisher update mode - Manually
kPartsNotUsed 0 edition is the whole file
kPartNumberUnknown -1 not used in System 7.0
kPreviewWidth 120 preview width
kPreviewHeight 120 preview height
Bits for formatsMask
kPICTformatMask 1
kTEXTformatMask 2
ksndFormatMask 4
kPublisherDocAliasFormat 'alis' alias record from edition to publisher
kPreviewFormat 'prvw' 'PICT' thumbnail sketch
kFormatListFormat 'fmts' list of avail. formats/sizes
Section Events
sectionEventMsgClass 'sect' Apple Event sent by Ed. Mgr.
sectionReadMsgID 'read' Section Read event
sectionWriteMsgID 'writ' Section Write event
sectionScrollMsgID 'scrl' Section Scroll event
sectionCancelMsgID 'cncl' Section Cancel event
Finder types for edition files
kPICTEditionFileType 'edtp' contains 'PICT'
kTEXTEditionFileType 'edtt' 'TEXT' file type
ksndEditionFileType 'edts' 'snd ' file type
kUnknownEditionFileType 'edtu' unknown file type
The refcon field of the dialog record during a modalfilter or dialoghook
contains one the following
emOptionsDialogRefCon 'optn' options dialog
emCancelSectionDialogRefCon 'cncl' cancel section
emGoToPubErrDialogRefCon 'gerr' locate publisher
kFormatLengthUnknown -1
refCon field when displaying stacked dialog boxes
sfMainDialogRefCon 'stdf' new publisher and new subscriber
sfNewFolderDialogRefCon 'nfdr' new folder
sfReplaceDialogRefCon 'rplc' replace dialog
sfStatWarnDialogRefCon 'stat' warning dialog
sfErrorDialogRefCon 'err ' error dialog
emOptionsDialogRefCon 'optn' options dialog
emCancelSectionDialogRefCon 'cncl' cancel section
emGotoPubErrDialogRefCon 'gerr' locate publisher
Pseudo-item hits for dialogHooks or NewPublisher or NewSubscriber
dialogs
emHookRedrawPreview 150
For SectionOptions Dialog
emHookCancelSection 160 for SectionOptions dialog
emHookGoToPublisher 161 for SectionOptions dialog
emHookGetEditionNow 162 for SectionOptions dialog
emHookSendEditionNow 162 for SectionOptions dialog
emHookManualUpdateMode 163 for SectionOptions dialog
emHookAutoUpdateMode 164 for SectionOptions dialog
Values for FormatIOVerb
ioHasFormat 0
ioReadFormat 1
ioNewFormat 2
ioWriteFormat 3
Values for EditionOpenerVerb
eoOpen 0
eoClose 1
eoOpenNew 2
eoCloseNew 3
eoCanSubscribe 4